<!-- BEGIN: main -->
<script>
	var urload = nv_siteroot + 'index.php?' + nv_lang_variable + '=' + nv_sitelang + '&' + nv_name_variable + '=' + nv_module_name + '&' + nv_fc_variable + '=loadcart';
    $("#total").load(urload+'&t=2');
	$(function(){
        $("a.remove_cart").click(function(){
            var href = $(this).attr("href");
            $.ajax({
                type: "GET",
                url: href,
                data: '',
                success: function(data){
                    if (data != '') {
                        $("#" + data).html('');
                        $("#cart_"+nv_module_name).load(urload);
                        $("#total").load(urload+'&t=2');
                    }
                }
            });
            return false;
        });
    });
</script>
<ul id="cart_nav">
		<!-- BEGIN: enable -->
		<li>
			<a class="cart_li" href="{LINK_VIEW}"> 
					{LANG.cart_title}: <span>{num}</span></a>
					<ul class="cart_cont">
						<!--  BEGIN: cart_check -->
					<!-- BEGIN: rows -->
					<li>
					
				<a href="#" class="prev_cart">
				<div class="cart_vert"><img src="{img_pro}" /></div></a>
                <div class="cont_cart">
                  <h4>{title_pro}</h4>
                  <div class="price">{info_n} x {price_p} {money_unit}</div>
                </div>
                <a title="close" class="close remove_cart" href="{link_remove}"></a>
                <div class="clear"></div>

					</li>
					
					<!-- END: rows -->
						<div class="smb ar">
				<b>{num}</b> {LANG.cart_product_title} |
				{LANG.cart_product_total} :<strong>{total} {money_unit}</strong>
			</div>
					<!--  END: cart_check -->
						<li class="no_border">
						<a title="{LANG.cart_check_out}" href="{LINK_VIEW}" class="view_cart" id="submit_send">Giỏ hàng</a>
						<a href="{LINK_HIS}" class="checkout">{LANG.history_title}</a>
						</li>
						
					</ul>		
		</li>
		
		<!-- END: enable -->
</ul>
<!-- END: main -->